<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Meu Sistema</title>
        <style type="text/css">
            body {background-color: #eeeeee; font-size: 12px}
        </style> 
    </h:head>
    <h:body>
        <div align="center">
            <p:layout style="min-width:1020px;max-width:1200px;min-height:600px">  
                <p:layoutUnit position="north" size="100">  
                    <h:graphicImage url="/tema/imagens/forRent.gif" />
                </p:layoutUnit>  

                <p:layoutUnit position="west" size="220">  
                    <ui:insert name="menu">
                        <h:form>
                            <h:commandButton value="Sair" action="#{loginBean.sair}"/>      
                            <p:menu style="width: 200px">
                                <p:submenu label="Menu">                                    
                                    <p:menuitem value="Imóveis" icon="ui-icon-key" url="novoImovel.faces"/>  
                                    <p:menuitem value="Listar Imoveis" icon="ui-icon-key" url="imoveis.faces"/>
                                    <p:menuitem value="Exibir Imoveis" icon="ui-icon-key" url="teste.faces"/>
                                    <p:menuitem value="Fotos Imóveis" icon="ui-icon-key" url="enviarFotos.faces"/>  
                                    <p:menuitem value="Novo Proprietario" icon="ui-icon-key" url="novoProprietario.faces"/>  
                                    <p:menuitem value="Listar Proprietario" icon="ui-icon-key" url="proprietarios.faces"/>  
                                    <p:menuitem value="Novo Usuario" icon="ui-icon-key" url="novo.faces" actionListener="#{usuarioBean.novo}" />  
                                    <p:menuitem  value="Listar Usuarios" icon="ui-icon-key" url="usuarios.faces"/> 
                                </p:submenu>
                            </p:menu>
                        </h:form>
                    </ui:insert>
                </p:layoutUnit>  
                <p:layoutUnit position="center">  
                    <ui:insert name="centro">
                        O que estiver aqui será substituido!
                    </ui:insert>
                </p:layoutUnit>  
            </p:layout>  
        </div>
    </h:body>
</html>
